package com.csdj.entity;

import java.util.List;

public class Page {
	//limit startIndex,pagesize
	private int pageSize;//每页的条数
	private int totalPage;//总页数
	private int curPageNo;//当前页
	private int totalCount;//总行数
	private List<?> pageList;
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getTotalPage() {
		return totalPage;
	}
	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}
	public int getCurPageNo() {
		return curPageNo;
	}
	public void setCurPageNo(int curPageNo) {
		this.curPageNo = curPageNo;
	}
	public int getTotalCount() {
		return totalCount;
	}
	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;

		if(totalCount%pageSize==0) {
			this.totalPage=totalCount/pageSize;
		}
		else {
			this.totalPage=totalCount/pageSize+1;
		}
	}
	public List<?> getPageList() {
		return pageList;
	}
	public void setPageList(List<?> pageList) {
		this.pageList = pageList;
	}
	
}
